package org.glut.wechat.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.glut.wechat.domain.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* 用户表 Mapper
*
* @author fy
* @since 2025-08-26 15:12
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("SELECT * FROM user WHERE id = #{id}")
    User selectById(Integer id);

    @Select("SELECT * FROM user WHERE username = #{username}")
    User selectByUsername(String username);
}
